//
//  LuanchVModel.swift
//  DocScaner
//
//  Created by liyahao on 2025/8/8.
//

import Combine

final class LuanchVModel: BaseVModel<LuanchModel> {
    @Published var selectPage: Int = 0
    var isDone: Bool { selectPage == models.count - 1 }
    
    override init() {
        super.init()
        self.mockData()
    }
    
    override func mockData() {
//        if let baseModel = BaseModel<[LuanchModel]>.deserializeJson("luanch_mock") {
//            self.models = baseModel.acrmost
//        }
    }
    
    func pageAdd() {
        if self.selectPage < 2 {
            self.selectPage += 1
        } else {
            self.selectPage = 0
        }
    }
}

struct LuanchModel: JSONable, Identifiable, Hashable {
    var id: String
    var icon: String
    var title: String
    var subtitle: String
}

